package com.etung.iot.demo.boxConfig;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Table;

@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@ApiModel(value = "条件存储规则")
public class ConditionStorage {
    @ApiModelProperty(required = true,notes = "规则编号")
    private Integer ruleId;
    @ApiModelProperty(required = true,notes = "规则名称")
    private String ruleName;
    @ApiModelProperty(required = true,notes = "规则类型")
    private Integer ruleType;
    @ApiModelProperty(required = true,notes = "监控变量ID")
    private Integer monitorId;
    @ApiModelProperty(required = true,notes = "操作符")
    private Integer oper;
    @ApiModelProperty(required = true,notes = "目标类型")
    private Integer targetType;
    @ApiModelProperty(notes = "目标值")
    private String targetValue;
    @ApiModelProperty(notes = "目标变量ID")
    private Integer targetVarId;
    @ApiModelProperty(notes = "周期")
    private Integer cycle;
    @ApiModelProperty(required = true,notes = "存储变量ID列表")
    private String varIdList;
}
